/*
 * VendorBO.java
 *
 * Created on March 28, 2007, 7:51 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package edu.byu.isys413.samlam;



/**
 * vendor
 * @author Brian Barrett
 */
public class Vendor {    
    private String vguid;
    private boolean dirty = false;
    private boolean alreadyInDB = false;
    private String name;
    private String address;
    private String phone;
    private String contact; //name of contact person
    
    /**
     * Creates a new instance of VendorBO
     * @param id set id
     */
    public Vendor(String id) {
        this.vguid = id;
    }

    /**
     * get guid
     * @return return guid
     */
    public String getVguid() {
        return vguid;
    }

    /**
     * is dirty
     * @return is dirty
     */
    public boolean isDirty() {
        return dirty;
    }

    /**
     * set dirty
     * @param dirty dirty
     */
    public void setDirty(boolean dirty) {
        this.dirty = dirty;
    }

    /**
     * is already in db
     * @return in db
     */
    public boolean isAlreadyInDB() {
        return alreadyInDB;
    }

    /**
     * set already in db
     * @param alreadyInDB already in db
     */
    public void setAlreadyInDB(boolean alreadyInDB) {
        this.alreadyInDB = alreadyInDB;
    }

    /**
     * get name
     * @return get name
     */
    public String getName() {
        return name;
    }

    /**
     * set name
     * @param name name
     */
    public void setName(String name) {
        this.name = name;
        this.dirty = true;
    }

    /**
     * get address
     * @return get address
     */
    public String getAddress() {
        return address;
    }

    /**
     * set address
     * @param address address
     */
    public void setAddress(String address) {
        this.address = address;
        this.dirty = true;
    }

    /**
     * get phone
     * @return set phone
     */
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
        this.dirty = true;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
        this.dirty = true;
    }
    
}
